package com.yj.springbootmybatis;

import com.yj.springbootmybatis.config.CorsConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.scheduling.annotation.EnableScheduling;
import tk.mybatis.spring.annotation.MapperScan;

@MapperScan("com.yj.springbootmybatis.mapper")
@SpringBootApplication
@EnableScheduling //开启定时任务
public class SpringBootMybatisApplication {

    public static void main(String[] args) {
        SpringApplication.run(SpringBootMybatisApplication.class, args);
        AnnotationConfigApplicationContext configApplicationContext = new AnnotationConfigApplicationContext(CorsConfig.class);
        System.out.println(1);
    }

}
